import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/index',
      redirect: '/home',
      component: () => import('@/views/layout/LayoutContainer.vue'),
      children: [
        {
          path: '/home',
          component: () => import('@/views/index/Index.vue')
        },
        {
          path: '/updatePwd',
          component: () => import('@/views/user/UpdatePwd.vue')
        },
        {
          path: '/kaoqindaka',
          component: () => import('@/views/timemanage/KaoQinDaKa.vue')
        },
        {
          path: '/KaoQinBuQian',
          component: () => import('@/views/timemanage/KaoQinBuQian.vue')
        },
        {
          path: '/ShenPiKaoQin',
          component: () => import('@/views/timemanage/ShenPiKaoQin.vue')
        },
        {
          path: '/ShenQingXiuJia',
          component: () => import('@/views/timemanage/ShenQingXiuJia.vue')
        },
        {
          path: '/XiuJiaJiLu',
          component: () => import('@/views/timemanage/XiuJiaJiLu.vue')
        },
        {
          path: '/ShenPiXiuJia',
          component: () => import('@/views/timemanage/ShenPiXiuJia.vue')
        },
        {
          path: '/YueDuChuQin',
          component: () => import('@/views/timemanage/YueDuChuQin.vue')
        },
        {
          path: '/Canlendar',
          component: () => import('@/views/timemanage/Canlendar.vue')
        },
        {
          path: '/ShenPiRen',
          component: () => import('@/views/timemanage/ShenPiRen.vue')
        },
        {
          path: '/RenYuanPaiBan',
          component: () => import('@/views/timemanage/RenYuanPaiBan.vue')
        },
        {
          path: '/PaiBanLeixing',
          component: () => import('@/views/timemanage/PaiBanLeixing.vue')
        },
        {
          path: '/JiaQiLeiXing',
          component: () => import('@/views/timemanage/JiaQiLeiXing.vue')
        },
        {
          path: '/staff',
          component: () => import('@/views/staffmanage/StaffIndex.vue')
        },
        {
          path: '/dept',
          component: () => import('@/views/deptmanage/DeptIndex.vue')
        },
        {
          path: '/positon',
          component: () => import('@/views/positionmanage/PositionIndex.vue')
        },
        {
          path: '/addstaff',
          component: () => import('@/views/staffmanage/AddStaff.vue')
        },
        {
          path: '/userinfo',
          component: () => import('@/views/user/UserInfo.vue')
        },
        {
          path: '/adddept',
          component: () => import('@/views/deptmanage/AddDept.vue')
        },
        {
          path: '/selectdept',
          component: () => import('@/views/deptmanage/SelectDept.vue')
        },
        {
          path: '/addposition',
          component: () => import('@/views/positionmanage/AddPosition.vue')
        },
        {
          path: '/selectposition',
          component: () => import('@/views/positionmanage/SelectPosition.vue')
        },
        {
          path: '/addjiaqileixing',
          component: () => import('@/views/timemanage/AddJiaQiLeiXing.vue')
        },
        {
          path: '/addpaibanleixing',
          component: () => import('@/views/timemanage/Addpaibanleixing.vue')
        },
        {
          path: '/addrenyuanpaiban',
          component: () => import('@/views/timemanage/AddRenYuanPaiBan.vue')
        },
        {
          path: '/staffinfo',
          component: () => import('@/views/staffmanage/StaffInfo.vue')
        },
        {
          path: '/tiaozhuan',
          component: () => import('@/views/staffmanage/tiaozhuan.vue')
        }
      ]
    },
    {
      path: '/',
      component: () => import('@/views/login/Login.vue')
    }
  ]
})

export default router
